//https://www.jianshu.com/p/a5b3c2284bb6
const path = require('path');
const webpack = require('webpack');
const PROJECT = require('./project.config');

module.exports = {
    entry: {
        vendor: PROJECT.COMPLIE_VENDORS
    },
    output: {
        path: PROJECT.PATH_DLL,
        filename: '[name].dll.js',
        library: '[name]_[hash]'
    },
    plugins: [
        new webpack.DllPlugin({
            path: PROJECT.PATH_MANIFEST,
            // This must match the output.library option above
            name: '[name]_[hash]'
        })
    ]
};